﻿using System;
using System.Configuration;

namespace SBPweb.Forge.Logger.Configuration
{
    
    public class LogSettingsConfigurationSection : ConfigurationSection
    {

        public static LogSettingsConfigurationSection OpenSectionInstance()
        {
            return ConfigurationManager.GetSection("logSettings") as LogSettingsConfigurationSection;
        }

        [ConfigurationProperty("listeners")]
        public ListenerElementCollection Listeners
        {
            get
            {
                return (ListenerElementCollection)this["listeners"];
            }
            set
            {
                this["listeners"] = value;
            }
        }

        [ConfigurationProperty("categories")]
        public CategoryElementCollection Categories
        {
            get
            {
                return (CategoryElementCollection)this["categories"];
            }
            set
            {
                this["categories"] = value;
            }
        }

    }

}